// 部门管理增删改查
import { baseRequest } from '@/utils/request'
const request = (url, ...arg) => {
    return baseRequest(url, ...arg)
}
export default {
    // 增
    addDept(data) {
        return request('/AddDept', {
            UUID: localStorage.getItem('UUID') ? localStorage.getItem('UUID') : '',
            ...data
        }, 'post')
    },
    // 删
    deleteDept(data) {
        return request('/DeleteDept', {
            UUID: localStorage.getItem('UUID') ? localStorage.getItem('UUID') : '',
            ...data
        }, 'post')
    },
    // 改
    modifyDept(data) {
        return request('/ModifyDept', {
            UUID: localStorage.getItem('UUID') ? localStorage.getItem('UUID') : '',
            ...data
        }, 'post')
    },
    // 查
    getDepts(data) {
        return request('/GetDepts', {
            UUID: localStorage.getItem('UUID') ? localStorage.getItem('UUID') : '',
            ...data
        }, 'post')
    },
}